<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 随便写代码；只要不出现语法错误即可
        console.log(1)
        setTimeout(() => {
            console.log(2)
        }, 100)
        console.log(3)
        new Promise((resolve, reject) => {
            console.log(4)
            resolve(5)
            console.log(6)
        }).then(res => {
            console.log(res) 
        })
        setTimeout(() => {
            new Promise((resolve, reject) => {
                console.log(7)
                resolve(8)
            }).then(res => {
                console.log(res) 
            })
        }, 100)

        console.log(9)
    </script>
</body>

</html>